package com.ruoyi.business.domain.vo.admin;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.business.domain.vo.FreightPaymentVoucherVo;
import com.ruoyi.business.domain.vo.OrderFeeVo;
import com.ruoyi.business.domain.vo.OrderPaymentVoucherVo;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单信息视图对象 order_info
 *
 * @author ruoyi
 * @date 2024-04-24
 */
@Data
@ExcelIgnoreUnannotated
public class AdminOrderQueryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @ExcelProperty(value = "订单id")
    private Long orderId;

    /**
     * 订单号
     */
    @ExcelProperty(value = "订单号")
    private String orderNo;

    /**
     * 订单状态(初始化|待提货|配送中|待回单|待打款|已完成)，全部运单切换到对应状态订单才切换到对应状态
     */
    @ExcelProperty(value = "订单状态(初始化|待提货|配送中|待回单|待打款|已完成)，全部运单切换到对应状态订单才切换到对应状态")
    private String orderStatus;

    /**
     * 显示状态，如已发货中的部分发货，为空则使用订单状态
     */
    @ExcelProperty(value = "显示状态，如已发货中的部分发货，为空则使用订单状态")
    private String displayStatus;

    /**
     * 订单总价
     */
    @ExcelProperty(value = "订单总价")
    private BigDecimal orderTotalPrices;

    /**
     * 货物名称
     */
    @ExcelProperty(value = "货物名称")
    private String goodsName;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "goods_type", mapper = "goodsName")
    private String goodsNameLabel;

    /**
     * 货物数量(单个)
     */
    @ExcelProperty(value = "货物数量(单个)")
    private Long goodsNumSingle;

    /**
     * 货物数量(总计)
     */
    @ExcelProperty(value = "货物数量(总计)")
    private Long goodsNumSum;

    /**
     * 货物数量单位
     */
    @ExcelProperty(value = "货物数量单位")
    private String goodsNumUnit;

    /**
     * 货物重量(吨)(单个)
     */
    @ExcelProperty(value = "货物重量(吨)(单个)")
    private BigDecimal goodsWeightSingle;

    /**
     * 货物重量(吨)(总计)
     */
    @ExcelProperty(value = "货物重量(吨)(总计)")
    private BigDecimal goodsWeightSum;

    /**
     * 货物体积(单个)
     */
    @ExcelProperty(value = "货物体积(单个)")
    private String goodsVolumeSingle;

    /**
     * 货物体积(总计)
     */
    @ExcelProperty(value = "货物体积(总计)")
    private BigDecimal goodsVolumeSum;

    /**
     * 用车类型(整车、零担)
     */
    @ExcelProperty(value = "用车类型(整车、零担)")
    private String carUseType;

    /**
     * 车长
     */
    @ExcelProperty(value = "车长")
    private Float carLength;

    /**
     * 车型(;分割)
     */
    @ExcelProperty(value = "车型(;分割)")
    private String carType;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "car_type", mapper = "carType")
    private String carTypeLabel;


    /**
     * 预计装货时间(yyyy-mm-dd)
     */
    @ExcelProperty(value = "预计装货时间(yyyy-mm-dd)")
    private String loadTimeDay;

    /**
     * 预计装货时间(hh:mm-hh:mm)
     */
    @ExcelProperty(value = "预计装货时间(hh:mm-hh:mm)")
    private String loadTimeHour;

    /**
     * 实际装货时间
     */
    @ExcelProperty(value = "实际装货时间")
    private Date loadingTimeDay;

    /**
     * 预计发货时间(mm-dd)
     */
    @ExcelProperty(value = "预计发货时间(mm-dd)")
    private String sendTimeDay;

    /**
     * 预计发货时间(hh:mm-hh:mm)
     */
    @ExcelProperty(value = "预计发货时间(hh:mm-hh:mm)")
    private String sendTimeHour;

    /**
     * 实际发货时间
     */
    @ExcelProperty(value = "实际发货时间")
    private Date sendingTimeDay;

    /**
     * 预计到货时间(yyyy-mm-dd)
     */
    @ExcelProperty(value = "预计到货时间(yyyy-mm-dd)")
    private String receiveTimeDay;

    /**
     * 预计到货时间(hh:mm-hh:mm)
     */
    @ExcelProperty(value = "预计到货时间(hh:mm-hh:mm)")
    private String receiveTimeHour;

    /**
     * 实际到货时间
     */
    @ExcelProperty(value = "实际到货时间")
    private Date receivingTimeDay;

    /**
     * 订单支付渠道
     */
    @ExcelProperty(value = "订单支付渠道")
    private String payChannel;

    /**
     * 订单支付单号,第三方支付流水号(transaction_id)
     */
    @ExcelProperty(value = "订单支付单号,第三方支付流水号(transaction_id)")
    private String outTradeNo;

    /**
     * 结算方式(现付、到付、月结)
     */
    @ExcelProperty(value = "结算方式(现付、到付、月结)")
    private String settlementType;

    @ExcelProperty(value = "结算方式(现付、到付、月结)")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "settlement_type", mapper = "settlementType")
    private String settlementTypeLabel;


    /**
     * 保险金额(0.00未购买)(付多少)
     */
    @ExcelProperty(value = "保险金额(0.00未购买)(付多少)")
    private BigDecimal insuredAmount;

    /**
     * 保价金额(赔多少)
     */
    @ExcelProperty(value = "保价金额(赔多少)")
    private BigDecimal declarationValue;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 业务来源id
     */
    @ExcelProperty(value = "业务来源id")
    private Long ownerId;

    /**
     * 业务来源类型
     */
    @ExcelProperty(value = "业务来源类型")
    private String ownerType;

    /**
     * 逻辑删除
     */
    @ExcelProperty(value = "逻辑删除")
    private Integer isDeleted;

    /**
     * 其他参数
     */
    @ExcelProperty(value = "其他参数")
    private String elseParams;

    /**
     * 幂等key
     */
    @ExcelProperty(value = "幂等key")
    private String uniqDedupKey;

    /**
     * 逻辑删除(用户侧)
     */
    @ExcelProperty(value = "逻辑删除(用户侧)")
    private Integer userDeleted;

    /**
     * 寄件人id
     */
    @ExcelProperty(value = "寄件人id")
    private Long sendId;

    /**
     * 寄件人姓名(冗余)
     */
    @ExcelProperty(value = "寄件人姓名(冗余)")
    private String sendName;

    /**
     * 寄件人手机号
     */
    @ExcelProperty(value = "寄件人手机号")
    private String sendPhone;

    /**
     * 寄件人公司
     */
    @ExcelProperty(value = "寄件人公司")
    private String sendCompanyName;

    /**
     * 寄件人公司简称
     */
    @ExcelProperty(value = "收件人公司简称")
    private String sendCompanyAbbreviation;

    /**
     * 寄件人省
     */
    @ExcelProperty(value = "寄件人省")
    private Long sendProvince;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "sendProvince")
    private String sendProvinceLabel;

    /**
     * 寄件人市
     */
    @ExcelProperty(value = "寄件人市")
    private Long sendCity;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "sendCity")
    private String sendCityLabel;

    /**
     * 寄件人区
     */
    @ExcelProperty(value = "寄件人区")
    private Long sendDistrict;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "sendDistrict")
    private String sendDistrictLabel;

    /**
     * 寄件人地址
     */
    @ExcelProperty(value = "寄件人地址")
    private String sendAddress;

    /**
     * 寄件人经度
     */
    @ExcelProperty(value = "寄件人经度")
    private String sendLongitude;

    /**
     * 寄件人纬度
     */
    @ExcelProperty(value = "寄件人纬度")
    private String sendLatitude;

    /**
     * 收件人id
     */
    @ExcelProperty(value = "收件人id")
    private Long receiverId;

    /**
     * 收件人姓名(冗余)
     */
    @ExcelProperty(value = "收件人姓名(冗余)")
    private String receiverName;

    /**
     * 收件人手机号
     */
    @ExcelProperty(value = "收件人手机号")
    private String receiverPhone;

    /**
     * 收件人公司
     */
    @ExcelProperty(value = "收件人公司")
    private String receiverCompanyName;

    /**
     * 收件人省
     */
    @ExcelProperty(value = "收件人省")
    private Long receiverProvince;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "receiverProvince")
    private String receiverProvinceLabel;

    /**
     * 收件人市
     */
    @ExcelProperty(value = "收件人市")
    private Long receiverCity;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "receiverCity")
    private String receiverCityLabel;

    /**
     * 收件人区
     */
    @ExcelProperty(value = "收件人区")
    private Long receiverDistrict;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "receiverDistrict")
    private String receiverDistrictLabel;

    /**
     * 收件人地址
     */
    @ExcelProperty(value = "收件人地址")
    private String receiverAddress;

    /**
     * 收件人经度
     */
    @ExcelProperty(value = "收件人经度")
    private String receiverLongitude;

    /**
     * 收件人纬度
     */
    @ExcelProperty(value = "收件人纬度")
    private String receiverLatitude;

    /**
     * 长(米)
     */
    @ExcelProperty(value = "长(米)")
    private BigDecimal goodsLong;

    /**
     * 宽(米)
     */
    @ExcelProperty(value = "宽(米)")
    private BigDecimal goodsWidth;

    /**
     * 高(米)
     */
    @ExcelProperty(value = "高(米)")
    private BigDecimal goodsHeight;

    /**
     * 是否紧急
     */
    @ExcelProperty(value = "是否紧急")
    private String isUrgency;

    /**
     * 是否异常
     */
    @ExcelProperty(value = "是否异常")
    private String isAbnormal;

    /**
     * 紧急备注
     */
    @ExcelProperty(value = "紧急备注")
    private String urgencyRemark;

    /**
     * 异常备注
     */
    @ExcelProperty(value = "异常备注")
    private String abnormalRemark;

    /**
     * 账号id(当前订单)
     */
    @ExcelProperty(value = "账号id(当前订单)")
    private Long relevanceUserId;

    /**
     * 剩余可开票金额
     */
    @ExcelProperty(value = "剩余可开票金额")
    private BigDecimal remainingInvoiceAmount;

    /**
     * 单号
     */
    @ExcelProperty(value = "单号")
    private String code;

    /**
     * 打包方式
     */
    @ExcelProperty(value = "打包方式")
    private String packaging;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "packing_method", mapper = "packaging")
    private String packagingLabel;

    /**
     * 打款信息
     */
    @ExcelProperty(value = "打款信息")
    private OrderPaymentVoucherVo orderPaymentVoucherVo;

    /**
     * 是否运营方添加
     */
    @ExcelProperty(value = "是否运营方添加")
    private String isOperationAdd;

    /**
     * 配送费
     */
    private List<OrderFeeVo> orderFeeList;

    /**
     * 司机类型
     */
    @ExcelProperty(value = "司机类型")
    private List<AdminOrderDriverVo> orderDriverVoList;


}
